Academy\API\QuestionAnswer D

Total Complexity 221
Dependencies 11
Dependents 1
Total lines 1,749
Lines of code 1,156
Logical lines of code 504
Comment lines 361
Methods 27
Properties 1

Methods 27

Method Rating Maintainability Complexity Lines of code
create_item()
D
29
31 128
update_item()
B
35 21 88
prepare_item_for_database()
B
38 22 62
prepare_item_for_response()
B
37 19 70
get_items()
B
35 16 82
get_item_schema()
A
31 4 150
handle_status_param()
A
49 11 33
check_read_post_permission()
A
51 10 25
delete_item()
A
42 8 54
prepare_links()
A
44 7 49
get_items_permissions_check()
A
54 9 19
check_read_permission()
A
57 8 16
get_collection_params()
S
35 1 120
get_item_permissions_check()
S
53 7 22
prepare_status_response()
S
58 7 18
create_item_permissions_check()
S
57 7 15
get_comment()
S
52 5 26
normalize_query_param()
S
56 5 21
register_routes()
S
41 1 68
save_comments_meta()
S
66 5 7
delete_item_permissions_check()
S
60 3 14
update_item_permissions_check()
S
59 3 14
check_comment_author_email()
S
63 3 11
check_is_comment_content_allowed()
S
57 2 18
check_edit_permission()
S
65 3 9
get_item()
S
65 2 9
init()
S
65 1 8